package top.infopub.job.cap.dao;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import top.infopub.generic.GenericDao;
import top.infopub.model.cap.LoanContractSublist;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Author Warking
 * @Date 2021/6/6 14:17
 * @Version 1.0
 */
@Repository
public interface LoanContractInterestDao extends GenericDao<LoanContractSublist, String> {

    List<LoanContractSublist> selectRateList();

    void updateInterestRate(@Param("id") String id, @Param("interestRate") BigDecimal y, @Param("contractFinancingCost") BigDecimal contractFinancingCost);

    void updateFinCost(@Param("id") String id, @Param("financingCost") String financingCost);
}
